<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
	<style type="text/css">
		 *{
		 	padding: 0;
		 	margin: 0;
		 }
		 .left{
		 	width: 200px;
		 	height: 50px;
		 	background: pink;
		 	float: left;
		 }
		 .right{
		 	width: 600px;
		 	height: 50px;
		 	background: skyblue;
		 	float: right;
		 }
		/*	2.clear:
				-left 不去找前面的左浮动
				-right 不去找前面的右浮动
				-both 不去找前面的左和右的浮动	
				不想让谁浮动就给谁加
				缺点： 给元素设置clear之后，margin失效*/
		 .con{
		 	width: 1000px;
		 	height: 500px;
		 	background: greenyellow;
		 	margin: 0 auto;
		 	clear: both;
		 }
	</style>
</head>
<body>
	<div class="nav">
       <div class="left"></div>
       <div class="right"></div>
    </div>
    <div class="con">
 	
    </div>
</body>
</html>		 		 